package com.qf.service.impl;


import com.qf.dao.AccountDao02;
import com.qf.factory.BeanFactory02;
import com.qf.service.AccountService02;

/**
 * @Description: 公用常量
 * @Data: 2022/8/27 19:06
 * @Pacakge: com.qf.service.impl
 * @ClassName: AccountServiceImpl02
 * @Author: fan
 */
public class AccountServiceImpl02 implements AccountService02 {
    private AccountDao02 accountDao02 = (AccountDao02) BeanFactory02.getBean("accountDao02");
    /**
     * 模拟添加账户
     */
    @Override
    public void addAccount() {
        System.out.println(accountDao02);
        //调用数据访问接口,调用其中的方法
        accountDao02.addAccount();
    }
}
